			let users=[{name:'a',pwd:'111'}];
			
			let username=document.getElementById("username");
			let pwd=document.getElementById("pwd");
			let btn=document.getElementById("log");
			
			btn.onclick=function(){
				let ret=users.some(function(value){
					return value.name==username.value && value.pwd==pwd.value;
				});
			
				if(username.value==localStorage.getItem('username1') && pwd.value==localStorage.getItem('pwd1')){
					alert("用户登入成功");
					window.location.href="index.html"
				}else if(ret){
					alert("用户登入成功");
					window.location.href="index.html"		
			
				}else{
					alert("输入正确用户名和密码");
				}
			}